$(function(){
	$("#meileloading").css("display", "none");
});

function meileLoading(){
	$("#meileloading").css("position", "fixed");
	$("#meileloading").css("width", "100%").css("height", "100%").css("background-color", "#000");
	$("#meileloading").css("filter", "alpha(opacity=50)").css("-moz-opacity", "0.5").css("-khtml-opacity", "0.5").css("opacity","0.5");
	$("#meileloading").css("top", '0px');
	$("#meileloading").css("display", "block");
	$("#meileloading").css("text-align", "center");
	$("#meileloading").css("vertical-align", "middle");
	$("#meileloading").css("z-index", "9999");
	appendLoadImage();
	
}

function removeMeileLoading(){
	$("#meileloading").css("display", "none");	
}

function appendLoadImage(){
	var imgDiv = "<div id=\"imgDiv\" style=\"top:40%;color:#fff;font-size:24px;font-weight:bold;position:absolute;left:50%;width:124px;height:124px;\">" +
			"正在上传<img src=\""+ctx+"/js/meileloading/loading.gif\"/><div>";
	$("#meileloading").html(imgDiv);
	$("#imgDiv").css("filter", "alpha(opacity=100)").css("-moz-opacity", "1.0").css("-khtml-opacity", "1.0").css("opacity","1.0");
}